#include <stdio.h>
#include <math.h>

// 实现数字穿越功能的函数
int number_transport(int num) {
    if (num >= 0) {
        return num;
    } else {
        int abs_num = abs(num);
        int result = 0;
        while (abs_num > 0) {
            result = result * 10 + abs_num % 10;
            abs_num /= 10;
        }
        return -result;
    }
}

int main() {
    int a, b;
    scanf("%d %d", &a, &b);
    int result_a = number_transport(a);
    int result_b = number_transport(b);
    int sum_result = result_a + result_b;
    printf("%d\n", sum_result);
    return 0;
}